package com.cskaoyan.mapper;

import com.cskaoyan.bean.Student;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {

    // 根据学生id查询学生的信息以及学生对应的课程信息
    // 连接查询
    Student selectStudentByIdWithCourseListUseCrossJoin(@Param("id") Integer id);


    // 分次查询
    Student selectStudentByIdWithCourseListUseMultiCount(@Param("id") Integer id);
}
